import { getPostBySlug } from '../../../lib/markdown';

export default async function Post({ params }) {
  const post = await getPostBySlug(params.slug);

  return (
    <main className="container">
      <article className="article">
        <h1>{post.title}</h1>
        <div className="post-date">{post.date}</div>
        <div dangerouslySetInnerHTML={{ __html: post.content }} />
      </article>
    </main>
  );
} 